<template>
  <el-config-provider :locale="zhCn">
    <router-view></router-view>
  </el-config-provider>
</template>
<script setup>
import { onMounted } from 'vue'
import autofit, { elRectification } from 'autofit.js'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

onMounted(() => {
  autofit.init(
    {
      dh: 1080,
      dw: 1920,
      el: "#app",
      resize: true,
      // ignore: ['#map','.map','.css2','.css3']
    },
  )

  // window.addEventListener('resize', () => {
  //   console.log(autofit.scale) // 每次改变窗口大小时，此值会改变
  // })
})
</script>